<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<html>
<head>
<script language="javascript">
	$().ready(function(){
		$("#loginIDTip").hide();
		
		if("${actionResult}" == "loginId_not_exist"){
			$("#loginIDTip").html("帐户名不存在");
			$("#loginIDTip").show();
		}
		
		$("#submit_data").click(function(){
			var isCorrect = true;

			$("#codeTip").hide();
			$("#mailTip").hide();
			$("#loginIDTip").hide();

			var text = $("#loginID").val();
			if(text == ""){
				$("#loginIDTip").html("请输入帐户名");
				$("#loginIDTip").show();
				return;
			}
			if(isAllNum(text) || text.length>20){
				$("#loginIDTip").html("帐户名错误");
				$("#loginIDTip").show();
				isCorrect = false;
			}
			
			$("#forgetpwdForm").submit();
			return false;			
		});
	});
	function isAllNum(str){
		for(var i=0;i<str.length;i++){
			var c = str.charCodeAt(i);
			if(c > 57 || c < 48)
				return false;
		}
		return true;
	}
</script>
</head>
<body>
  <div id="main" class="member-reg">
  	<h3>找回密码</h3>
    <div class="m-regform">
   	   <p class="pointmsg" style="margin-left:220px;">忘记了密码？<br />
       您可以通过下方指示自助找回密码：</p>
       <s:form action="goforgetpwd.do" method="post" id="forgetpwdForm">
   	  <ul style="margin-left:150px;">
       <li><div><label for="name">帐户名：</label></div><div><INPUT size="20"  value="${loginID}" id="loginID" name="loginID" maxlength="20"/><span style="display:block"><span class="msg rn" id="loginIDTip" style="display:none;">帐户名不存在</span></span></div></li>
      </ul>
        <p align="center">&nbsp;</p>
        <p align="center"><a href="javascript:;" class="btn-mid" id="submit_data">下一步</a></p>
        </s:form>
    </div>
  </div>
</body>
</html>